package cc.rico.guava.eventbus;

import com.google.common.eventbus.DeadEvent;
import com.google.common.eventbus.Subscribe;

/**
 * @Author: Dell
 * @Date: 2018/12/25
 * @Description:
 */
public class DeadEventListener {
    private boolean delivered = false;

    @Subscribe
    public void listen(DeadEvent event) {
        System.out.println("DeadEventListener.listen...");
        delivered = true;
    }

    public boolean isDelivered() {
        return delivered;
    }

}
